package com.autumn;

import com.autumn.service.UserInterface;
import com.spring.AutumnApplicationContext;

public class Tests {
    public static void main(String[] args) {
        // 扫描 -> 创建单例Bean
        AutumnApplicationContext applicationContext = new AutumnApplicationContext(AppConfig.class);

        /*UserService userService = (UserService) applicationContext.getBean("userService");
        userService.test();*/

        UserInterface userService = (UserInterface) applicationContext.getBean("userService");
        userService.test();

        //System.out.println(applicationContext.getBean("userService"));
        //System.out.println(applicationContext.getBean("userService"));
        //System.out.println(applicationContext.getBean("orderService"));
    }
}
